package com.liao.auth.fegin;

import com.liao.common.dto.WechatLoginRequest;
import com.liao.common.entity.member.UserEntity;
import com.liao.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

/**
 * @Author: ljt
 * @Description: 远程调用用户服务
 * @DateTime: 2025/3/14 下午10:59
 **/
@FeignClient("youyoumall-member")
public interface MemberFeignService {


    /**
     * 登录
     * 成功：接收userEntity对象
     */
    @PostMapping("/member/user/wx/login")
    Result<UserEntity> WxLogin(@RequestBody WechatLoginRequest request);


}
